﻿using NB.MGJ.Common.Utility;
using NB.MGJ.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NB.MGJ.Common.Cache
{
    /// <summary>
    /// 日志记录
    /// </summary>
    public static class LogHelper
    {
        private static LogService _logService;
        static LogHelper()
        {
            _logService = new LogService();
        }

        /// <summary>
        /// 添加
        /// </summary>
        public static void Add(string type, string typename, string contents, string ip, LogOnUserModel user)
        {
            try
            {
                _logService.Add(type, typename, contents, ip, user);
            }
            catch { }
        }
    }
}
